#!/bin/sh
### BEGIN INIT INFO
# Provides:      hb-gadget
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start bh-gadget at boot time
#Description:    Enable service provided by hb-gadget
### END INIT INFO


/usr/local/bin/hb-usb-device-start.sh &
#start status led
echo 21 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio21/direction
echo 0 > /sys/class/gpio/gpio21/value
exit 0

